@extends('layouts.tankuang')

@section('content')
    <!--startprint-->
    <form name="add_form" id="add_form" action="{{url('admin/units/add_baowei',$id)}}" method="post" enctype="multipart/form-data">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <div>
            <h2 class="text-center mg_b36 mg_t25" style="font-weight: bold;">重要部位登记表</h2>
            <table class="table-form table-border w mg-auto" style="width: 900px">
                <tr>
                    <td align="center" class="font-bd">单位名称</td>
                    <td colspan="2">
                        {{$re->unit_name}}
                    </td>
                    <td align="center" class="font-bd">要害部位编号</td>
                    <td>
                        {{$re->bianhao}}
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd">要害部位名称</td>
                    <td colspan="2">
                        {{$re->name}}
                    </td>
                    <td align="center" class="font-bd">安全负责人</td>
                    <td>
                        {{$re->fuzeren}}
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd">要害部位等级</td>
                    <td colspan="2">
                        {{$re->dengji}}
                    </td>
                    <td align="center" class="font-bd">要害类型</td>
                    <td>
                        {{$re->type}}
                    </td>
                </tr>
                <tr><td colspan="5" style="background-color: #69CEE9;text-align: center">安全防范措施</td></tr>
                <tr>
                    <td align="center" class="font-bd"style="background-color: #69CEE9;">安全制度</td>
                    <td align="center" class="font-bd">要害部位安全管理制度</td>
                    <td>
                        <input type="radio" name="aqff_01" value="1" @if($re->aqff_01 == 1)checked @endif>有
                        <input type="radio" name="aqff_01" value="2" @if($re->aqff_01 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">消防安全管理制度</td>
                    <td>
                        <input type="radio" name="aqff_02" value="1" @if($re->aqff_02 == 1)checked @endif>有
                        <input type="radio" name="aqff_02" value="2" @if($re->aqff_02 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd"style="background-color: #69CEE9;">人防情况</td>
                    <td align="center" class="font-bd">值守方式</td>
                    <td>
                        {{$re->aqff_03}}
                    </td>
                    <td align="center" class="font-bd">人员、车辆出入登记</td>
                    <td>
                        <input type="radio" name="aqff_04" value="1" @if($re->aqff_04 == 1)checked @endif>有
                        <input type="radio" name="aqff_04" value="2" @if($re->aqff_04 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd"style="background-color: #69CEE9;">物防情况</td>
                    <td align="center" class="font-bd">防护目标的门窗柜等物理设施</td>
                    <td>
                        <input type="radio" name="aqff_05" value="1" @if($re->aqff_05 == 1)checked @endif>有
                        <input type="radio" name="aqff_05" value="2" @if($re->aqff_05 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">保安器材装备配置</td>
                    <td>
                        <input type="radio" name="aqff_06" value="1" @if($re->aqff_06 == 1)checked @endif>有
                        <input type="radio" name="aqff_06" value="2" @if($re->aqff_06 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd"style="background-color: #69CEE9;" rowspan="2">技防情况</td>
                    <td align="center" class="font-bd">视频监控系统</td>
                    <td>
                        <input type="radio" name="aqff_07" value="1" @if($re->aqff_07 == 1)checked @endif>有
                        <input type="radio" name="aqff_07" value="2" @if($re->aqff_07 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">室内入侵报警系统</td>
                    <td>
                        <input type="radio" name="aqff_08" value="1" @if($re->aqff_08 == 1)checked @endif>有
                        <input type="radio" name="aqff_08" value="2" @if($re->aqff_08 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd">门禁系统</td>
                    <td>
                        <input type="radio" name="aqff_09" value="1" @if($re->aqff_09 == 1)checked @endif>有
                        <input type="radio" name="aqff_09" value="2" @if($re->aqff_09 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">室外周界报警系统</td>
                    <td>
                        <input type="radio" name="aqff_10" value="1" @if($re->aqff_10 == 1)checked @endif>有
                        <input type="radio" name="aqff_10" value="2" @if($re->aqff_10 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd"style="background-color: #69CEE9;" rowspan="2">消防情况</td>
                    <td align="center" class="font-bd">疏散指示标志</td>
                    <td>
                        <input type="radio" name="aqff_11" value="1" @if($re->aqff_11 == 1)checked @endif>有
                        <input type="radio" name="aqff_11" value="2" @if($re->aqff_11 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">应急照明灯具配备</td>
                    <td>
                        <input type="radio" name="aqff_12" value="1" @if($re->aqff_12 == 1)checked @endif>有
                        <input type="radio" name="aqff_12" value="2" @if($re->aqff_12 == 2)checked @endif>无
                    </td>
                </tr>
                <tr>
                    <td align="center" class="font-bd">消防设施及器材配备</td>
                    <td>
                        <input type="radio" name="aqff_13" value="1" @if($re->aqff_13 == 1)checked @endif>有
                        <input type="radio" name="aqff_13" value="2" @if($re->aqff_13 == 2)checked @endif>无
                    </td>
                    <td align="center" class="font-bd">灭火设备的操作</td>
                    <td>
                        <input type="radio" name="aqff_14" value="1" @if($re->aqff_14 == 1)checked @endif>有
                        <input type="radio" name="aqff_14" value="2" @if($re->aqff_14 == 2)checked @endif>无
                    </td>
                </tr>
                <tr><td colspan="5" style="background-color: #69CEE9;text-align: center">平面图</td></tr>
                <tr>
                    <td align="center" class="font-bd">平面图</td>
                    <td colspan="4">
                        @if($re->pic1 != '')
                            <div class="example"><img src="{{ URL::asset('/') }}{{$re->pic1}}" class="img-rounded" alt="" width="200" height="140"></div>
                        @endif
                    </td>
                    {{--<td width="10%" align="center" class="font-bd">全景图</td>
                    <td width="16%"><input type="file" value="" name="pic2" class="w178"></td>
                    <td align="center" width="12%" class="font-bd">内部图</td>
                    <td width="16%"><input type="file" value="" name="pic3" class="w178"></td>--}}
                </tr>
                <tr>
                    <td align="center" class="font-bd">备注</td>
                    <td colspan="4">
                        {{$re->remark}}
                    </td>
                </tr>
            </table>
            <!--endprint-->
            {{--<div class="w wbt mg_t25 mg_b18">
                <span class="font-bd">填报单位：</span>
                <input type="text" class="w250 input_bottom dsp" name="">
                <span class="itv"></span>
                <span class="font-bd">填报人：</span>
                <input type="text" class="w250 input_bottom dsp">
            </div>--}}
            <div class="w wbt mg_t25" style="width: 900px">
                <a id="goToPageB" class="easyui-linkbutton dsp print" data-options="iconCls:'icon-print'" onclick="doPrint()">打印</a>
            </div>
        </div>
    </form>


    <script type="text/javascript">
        function doPrint() {
            bdhtml=window.document.body.innerHTML;
            sprnstr="<!--startprint-->";
            eprnstr="<!--endprint-->";
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML=prnhtml;
            window.print();
        }
    </script>
@stop